// Author     : Leo King
// CreateDate : 2014/6/3 10:44:01
// CopyRight  : CopyRight @lktec 2013~2015
// Site       : http://www.lktec.cn
// Version    : 1.0.0.1

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;

namespace yc.Dal
{
	/// <summary>
	/// 公司信息
	/// </summary>
	public partial class SysCompany
	{
		#region 初始化
		public SysCompany()
		{
			this.SysCompanyContact = new List<SysCompanyContact>();
			this.SysCompanyEmployee = new List<SysCompanyEmployee>();
		}
		#endregion

		#region 基本属性

		/// <summary>
		/// 系统编号
		/// </summary>
		[Display(Name = "系统编号")]
		[Key, ScaffoldColumn(false)]
		public long ID { get; set; }

		/// <summary>
		/// 公司编号
		/// </summary>
		[Display(Name = "公司编号")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string SysNo { get; set; }

		/// <summary>
		/// 公司名称
		/// </summary>
		[Display(Name = "公司名称")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Caption { get; set; }

		/// <summary>
		/// 归属地
		/// </summary>
		[Display(Name = "归属地")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Attribution { get; set; }

		/// <summary>
		/// 公司地址
		/// </summary>
		[Display(Name = "公司地址")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string Address { get; set; }

		/// <summary>
		/// 公司网站
		/// </summary>
		[Display(Name = "公司网站")]
		[StringLength(100, ErrorMessage = "{0}长度不能大于{1}")]
		public string Web { get; set; }

		/// <summary>
		/// 公司电话
		/// </summary>
		[Display(Name = "公司电话")]
		[StringLength(20, ErrorMessage = "{0}长度不能大于{1}")]
		public string Telephone { get; set; }

		/// <summary>
		/// 公司简介
		/// </summary>
		[Display(Name = "公司简介")]
		[StringLength(500, ErrorMessage = "{0}长度不能大于{1}")]
		public string Description { get; set; }

		/// <summary>
		/// 公司服务
		/// </summary>
		[Display(Name = "公司服务")]
		[StringLength(200, ErrorMessage = "{0}长度不能大于{1}")]
		public string Service { get; set; }

		/// <summary>
		/// 组织架构
		/// </summary>
		[Display(Name = "组织架构")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Structure { get; set; }

		/// <summary>
		/// 公司规模
		/// </summary>
		[Display(Name = "公司规模")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Employees { get; set; }

		/// <summary>
		/// 公司性质
		/// </summary>
		[Display(Name = "公司性质")]
		[StringLength(50, ErrorMessage = "{0}长度不能大于{1}")]
		public string Nature { get; set; }

		/// <summary>
		/// 创建日期
		/// </summary>
		[Display(Name = "创建日期")]
		public Nullable<System.DateTime> CreateDate { get; set; }

		#endregion

		#region 复合属性
		/// <summary>
		/// 公司联系人
		/// </summary>
		[ForeignKey("CID")]
		public virtual List<SysCompanyContact> SysCompanyContact { set; get; }

		/// <summary>
		/// 公司招聘
		/// </summary>
		[ForeignKey("CID")]
		public virtual List<SysCompanyEmployee> SysCompanyEmployee { set; get; }

		#endregion
	}
}
